
import {combineReducers} from "redux-immutable";
import { reducer as headerReducer } from '../common/header/store';
import { reducer as homeReducer } from '../pages/home/store';
import { reducer as detailReducer } from '../pages/detail/store';
import { reducer as loginReducer } from '../pages/login/store';

export default combineReducers({
    header:headerReducer,
    home:homeReducer,
    detail:detailReducer,
    login:loginReducer
})

//combineReducers    combine--结合
// 好处：当主文件 store reducer.js里的代码越来越多，不易维护。通过拆解 reducer里的代码进行管理
// 将 reducer拆成多个 子 reducer 再做整合
